package com.jamal2362.apktool.view;

import android.content.Context;
import android.util.AttributeSet;

public class TreeView<T> extends RefreshListView
{
	private final TreeListAdapter<T> adapter;

	public TreeView(Context c)
	{
		this(c, null);
	}

	public TreeView(Context c, AttributeSet a)
	{
		super(c, a);
		adapter = new TreeListAdapter<>(c);
		setAdapter(adapter);
		setOnItemClickListener(adapter);
		setDivider(null);
	}

	public void setAdapter(TreeAdapter<T> adapter)
	{
		this.adapter.setAdapter(adapter);
	}
}
